//
//  CinemaTableViewCell.m
//  UI14_豆瓣电影更新版
//
//  Created by dllo on 16/1/3.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import "CinemaTableViewCell.h"

@implementation CinemaTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self creatCell];
    }
    return self;
}
- (void)dealloc {
    [_img release];
    [_label release];
    [_label2 release];
    [_label3 release];
    [super dealloc];
}
- (void)creatCell {
    self.img = [[UIImageView alloc] init];
    [self.contentView addSubview:_img];
    [_img release];
    self.label = [[UILabel alloc] init];
    [self.contentView addSubview:_label];
    [_label release];
    self.label2 = [[UILabel alloc] init];
    [self.contentView addSubview:_label2];
    [_label2 release];
    self.label3 = [[UILabel alloc] init];
    [self.contentView addSubview:_label3];
    [_label3 release];
}
- (void)layoutSubviews {
    [super layoutSubviews];
    _img.frame = CGRectMake(10, 10, self.contentView.frame.size.width - 20, 180);
    _img.image = [UIImage imageNamed:@"bg_eventlistcell@2x.png"];
    _label.frame = CGRectMake(20, 15, _img.frame.size.width - 30, 30);
    _label.font = [UIFont systemFontOfSize:25];
    _label2.frame = CGRectMake(20, 50, _img.frame.size.width - 30, 60);
    _label2.numberOfLines = 2;
    _label3.frame = CGRectMake(20, 120, _img.frame.size.width - 30, 30);
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
